package com.csylh.enums;

import lombok.Getter;

/**
 * Created by 留歌
 * Date: 2018/3/13 0:18
 * Description:
 */
@Getter
public enum ResultEnum {

    PARAM_ERROR(1,"参数不正确"),
    WASTE_NOT_EXIST(2,"废品信息不存在"),
    ORDER_NOT_EXIST(3,"订单主表不纯在"),
    ORDERDETAIL_NOT_EXIST(4,"订单详情不纯在"),
    ORDER_OWNER_ERROR(5,"不是本人订单"),
    ORDER_STATUS_ERROR(6,"订单状态不正确"),
    ORDER_UPDATE_FAIL(7,"订单更新失败");


    private int code;

    private String msg;

    ResultEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}